export default {
    login(state) {
        state.user = !state.user;
    },
    setCount(state) {
        state.count++;
    },
    // 记录搜索分发状态
    getSearchArr(state, payload) {
        state.resultArr = payload;
    },
    removeSearch(state) {
        state.resultArr = [];
    },
    refreshBoard(state) {
        state.boardRefresh++;
    },
    refreshMain(state) {
        state.mainRefresh++;
    }
};
